using Orchard;
using Orchard.Security;
using System;
using DanubiusInfo.Orchard.Ldap.Models;

namespace DanubiusInfo.Orchard.Ldap.Services
{
    public interface ILdapService : ITransientDependency
    {
        bool Authenticate(string userName, string password);
        CreateUserParams GetCreateUserParams(string userName, string password);
        bool ChangePassword(string userName, string oldPassword, string newPassword);

        ILdapDirectory Directory { get; }
    }
}